cmake_minimum_required(VERSION 3.12)
project(RobotController)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(websocketpp REQUIRED)
find_package(OpenSSL REQUIRED)

add_definitions(-DASIO_STANDALONE)

add_executable(server
    Server.cpp
)


target_link_libraries(server
    websocketpp::websocketpp
    OpenSSL::SSL
)


add_executable(client
    Client.cpp
)


target_link_libraries(client
    websocketpp::websocketpp
    OpenSSL::SSL
)

